package project.single;

public class Singleton {
	public long time;

	private Singleton() {
		time = System.currentTimeMillis();
	}

	private static class SingleFactory {
		private static Singleton singleton = new Singleton();
	}

	public static Singleton getSingleton() {
		return SingleFactory.singleton;
	}

	private static Object readResolve() {
		return getSingleton();
	}
}
